import service from '/@/utils/request';

export const commonApi = {
    renderMarkdown(markdown: string) {
        return service.post<string, { markdown: string }>(`/admin/common/renderMarkdown`, {markdown: markdown});
    },
    alias(name: string) {
        return service.get<string>(`/admin/common/alias`, {
            params: {
                title: name,
                separator: "-"
            }
        });
    },
}